package top.fzqblog.clazz

/**
 * Created by 抽离 on 2017/8/2 0002.
 */
interface Base {
    fun print()
}
class BaseImpl(val x: Int) : Base {
    override fun print() { println(x) }
}
class Derived(b: Base) : Base by b

fun main(args: Array<String>) {
    val b = BaseImpl(10)
    Derived(b).print()
}